// 路由
import VueRouter from 'vue-router'
// 路由模块
import home from './components/home.vue'
import search from './components/search.vue'
import shopcart from './components/shopcart.vue'
import member from './components/member.vue'
import NewsList from './components/news/NewsList.vue'
import NewsInfo from './components/news/newsinfo.vue'
import imgList from './components/imgs/imgList.vue'
import imgListInfo from './components/imgs/imgListInfo.vue'
import shop from './components/shop/shop.vue'
import shopInfo from './components/shop/shopInfo.vue'
import GetComment from './components/shop/commentInfo.vue'
import getIntroduce from './components/shop/getIntroduce.vue'
export default new VueRouter({
    routes:[
        {path:'/',redirect:'/home'},
        {path:'/home',component:home},
        {path:'/search',component:search},
        {path:'/shopcart',component:shopcart},
        {path:'/member',component:member},
        {path:'/home/newsList',component:NewsList},
        {path:'/home/newsList/:id',component:NewsInfo},
        {path:'/home/imgList',component:imgList},
        {path:'/home/imgList/:id',component:imgListInfo},
        {path:'/home/shop',component:shop},
        {path:'/home/shop/:id',component:shopInfo},
        {path:'/home/getComment/:id',component:GetComment,name:'getComment'},
        {path:'/home/getIntroduce/:id',component:getIntroduce,name:'getIntroduce'},
    ],
    linkActiveClass:' mui-active'
})